﻿
namespace BusinessLogic.Model
{
    public partial class NewsItem
    {
        public CommentsPolicy AllowComments
        {
            get
            {
                return (CommentsPolicy)this.CommentsPolicy;
            }
            set
            {
                this.CommentsPolicy = (byte)value;
            }
        }
    }

    public enum CommentsPolicy : byte
    {
        Everyone = 0,
        Registered = 1,
        Forbidden = 2
    }
}